09. Collections - Map and Set
035ND C01 L01 A11 MAP AND SET
In this section I am going to show you the Map and Set interfaces.
Map stores an element in key and element fashion, that is, when you store an element, you will give it a key for Map to retrieve and manipulate it easily. Set stores elements by using hashing.
Two common Map implementations are HashMap and TreeMap.
Two common Set implementations are HashSet and TreeSet.
Resources:
Map: https://docs.oracle.com/javase/8/docs/api/java/util/Map.html
Set: https://docs.oracle.com/javase/8/docs/api/java/util/Set.html
Map and Set
SOLUTION:
TreeSetMap and Set Q2
SOLUTION:
Aman SinghMap And Set Exercise
Task Description:
Please complete the “words frequency” coding problem.
Give a list of strings, calculate and print the frequency of each string based on alphabetical order.
Example1: input {“abc”, “bcd”, “abc”}, output “abc”|2, “bcd”|1
Task Feedback:
Solution: https://github.com/udacity/JDND/tree/master/exercises/c1/exercises
035ND C01 L01 A12 MAP AND SET WALKTHROUGH